#!/bin/bash
# Copyright (c) 2020 Presto Labs Pte. Ltd.
# Author: donggu

import pandas

dates = '20200202-20200428'
se = pandas.DatetimeIndex(dates.split('-'))
dates = pandas.date_range(*se).strftime('%Y%m%d')

for d in dates:
  cmd = f'srun -N1 -n1 ./bazel-bin/cc/appcoin2/experimental/donggu/dump --driver cc/appcoin2/experimental/donggu/strat/archive1.json --date {d} --name {d} &'
  print(cmd)
print('wait')
print('python cc/appcoin2/experimental/donggu/strat/merge_df.py')
